package com.yxx.business.mapper;

import java.util.List;

import com.yxx.business.entity.TbOperationPhaseDo;
import com.yxx.business.entity.TbOperationPhaseQueryDto;
import com.yxx.common.core.mapper.BaseMapperPlus;

/**
 * 运营维护阶段Mapper接口
 *
 * @author yxx
 * @date 2025-08-16
 */
public interface TbOperationPhaseMapper extends BaseMapperPlus<TbOperationPhaseDo> {

    /**
     * 查询运营维护阶段列表
     *
     * @param tbOperationPhaseQueryDto 运营维护阶段查询实体
     * @return 运营维护阶段集合
     */
    public List<TbOperationPhaseDo> selectTbOperationPhaseList(TbOperationPhaseQueryDto tbOperationPhaseQueryDto);

    /**
     * 查询运营维护阶段
     *
     * @param operationId 运营维护阶段主键
     * @return 运营维护阶段单个
     */
    public TbOperationPhaseDo selectTbOperationPhaseByOperationId(Long operationId);

    /**
     * 新增运营维护阶段
     *
     * @param tbOperationPhaseDo 运营维护阶段数据库实体
     * @return 结果
     */
    public int insertTbOperationPhase(TbOperationPhaseDo tbOperationPhaseDo);

    /**
     * 修改运营维护阶段
     *
     * @param tbOperationPhaseDo 运营维护阶段数据库实体
     * @return 结果
     */
    public int updateTbOperationPhase(TbOperationPhaseDo tbOperationPhaseDo);

    /**
     * 删除运营维护阶段
     *
     * @param operationId 运营维护阶段主键
     * @return 结果
     */
    public int deleteTbOperationPhaseByOperationId(Long operationId);

    /**
     * 批量删除运营维护阶段
     *
     * @param operationIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTbOperationPhaseByOperationIds(List<Long> operationIds);
}
